<template>
  <div
    class="q-modal-layout column absolute-full"
  >
    <div
      v-if="$slots.header || ($q.theme === 'ios' && $slots.navigation)"
      class="layout-header"
      :style="headerStyle"
      :class="headerClass"
    >
      <slot name="header"></slot>
      <slot v-if="$q.theme !== 'ios'" name="navigation"></slot>
    </div>

    <div
      class="q-modal-layout-content col scroll"
      :style="contentStyle"
      :class="contentClass"
    >
      <slot></slot>
    </div>

    <div
      v-if="$slots.footer || ($q.theme === 'ios' && $slots.navigation)"
      class="layout-footer"
      :style="footerStyle"
      :class="footerClass"
    >
      <slot name="footer"></slot>
      <slot v-if="$q.theme === 'ios'" name="navigation"></slot>
    </div>
  </div>
</template>

<script>
export default {
  name: 'q-modal-layout',
  props: {
    headerStyle: [String, Object, Array],
    headerClass: [String, Object, Array],

    contentStyle: [String, Object, Array],
    contentClass: [String, Object, Array],

    footerStyle: [String, Object, Array],
    footerClass: [String, Object, Array]
  }
}
</script>
